<%@ page language="java" import="java.util.*" pageEncoding="UTF-8"%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ include file="../include/base.jsp" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<head>
	<meta http-equiv="Content-Type" content="text/html;charset=UTF-8" />
	<title>CRM客户关系管理系统</title>
	<link href="<%=basePath %>css/all.css" media="screen" rel="stylesheet" type="text/css" />
   <link href="<%=basePath %>css/application.css" media="print" rel="stylesheet" type="text/css" />
   <link href="<%=basePath %>css/blue.css" media="screen" rel="stylesheet" title="Theme" type="text/css" />
	
   
</head>
<body>
<div id="app_header">
	<div class="background"></div>
	<div class="boundary">
		<div id="upgrade_bar"></div>
		<div id="inner_header_wrapper">
			<a href="/" id="app_logo">
			<img alt="Logo-topleft" src="<%=basePath %>img/logo-topleft.png" style="padding-top: 8px;" />
			</a>
			<table id="page_actions">
				<tr>
					<td class="tiny">
						<div class="menu_container">
							
								<span class="action">
								<a href="<%=basePath %>contact/toAddContact.action" behavior="return_to">
								<span>添加联系人</span>
								</a>
								</span>
	            	
						</div>
					
					</td>
					<td class="tiny">		
						<div class="menu_container">
							<span class="action"><a href="#" behavior="new_task_button" class="menu_target"><span>新的任务</span></a></span>
							<div id="balloon_new_task" class="balloon left menu_content task_form_balloon">
 
							<div class="balloon_pointer">
								<div class="balloon_arrow menu_target"></div>
								<div class="balloon_arrow_border"></div>
							</div>
  
  
							<div class="balloon_wrapper">
							<div class="balloon_content">
							<div class="new_task">
								<form action="/tasks" class="new_task" id="form_task" method="post" onsubmit="$(this).addClassName('busy'); new Ajax.Request('/tasks', {asynchronous:true, evalScripts:true, parameters:Form.serialize(this)});
								// return false;">
									<div style="margin:0;padding:0;display:inline">
										<input name="authenticity_token" type="hidden" value="9AUKx9XbYod+gDVLMvr3nAlbuuAwyWefB0kyeei50dg=" />
									</div>
									<div id="form_body_task" class="task_form">
										<input id="context" name="context" type="hidden" value="latest" />
										<input id="from" name="from" type="hidden" value="dashboard" />
									<div class="new_task">
									<h3>添加新任务</h3>
										<p class="task_body">
										<input class="autofocus" id="body_task" name="" size="30" type="text" />
										</p>
									<div id="controls_task" class="controls">
										<h5>时间</h5>
										<p>
											<select name="task[frame]" onchange="Tasks.changeFrame(this)">
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;pm&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-29&quot;,&quot;task[due_at][minute]&quot;:&quot;45&quot;,&quot;task[due_at][hour]&quot;:&quot;11&quot;}" selected="selected" value="today">今天</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="tomorrow">明天</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="this_week">本周</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="next_week">下周</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="later">以后</option>
											   <option params="{&quot;task[due_at][am_pm]&quot;:&quot;am&quot;,&quot;task[due_at][date]&quot;:&quot;2012-09-30&quot;,&quot;task[due_at][minute]&quot;:&quot;00&quot;,&quot;task[due_at][hour]&quot;:&quot;9&quot;}" value="specific">特殊的日子...</option>
											   </select>
											<span class="link_to_set_day_and_time">
											或者
											<a href="#" onclick="Tasks.changeFrame($(this).up(0).previous('select'), 'specific'); return false;">
											设置时间日期
											</a>
											</span>
											</p>
											<div class="set_day_and_time">
												<div class="inner">
													<input id="calendar_task" name="task[due_at][date]" type="hidden" value="2012-09-29" />
													<script type="text/javascript">
													//<![CDATA[
														async("new CalendarDateSelect(\"calendar_task\", {\"id\":\"calendar_task\"});")
													//]]>
													</script>
												<div class="set_task_time">
													at <select id="task_due_at_hour" name="task[due_at][hour]">
													<option value="1">1</option>
													<option value="2">2</option>
													<option value="3">3</option>
													<option value="4">4</option>
													<option value="5">5</option>
													<option value="6">6</option>
													<option value="7">7</option>
													<option value="8">8</option>
													<option value="9">9</option>
													<option value="10">10</option>
													<option value="11" selected="selected">11</option>
													<option value="12">12</option></select>:
													<select id="task_due_at_minute" name="task[due_at][minute]">
															<option value="00">00</option>
															<option value="15">15</option>
															<option value="30">30</option>
															<option value="45" selected="selected">45</option>
													</select>
													<select id="task_due_at_am_pm" name="task[due_at][am_pm]">
															<option value="am">am</option>
															<option value="pm" selected="selected">pm</option></select>
												</div>
												</div>
											</div>
										<h5>选择方式</h5>
											<p>
											<select id="category_task" name="task[category_id]" onchange="Tasks.changeCategory(this)">
											<option value="" selected="selected">None</option>
											<option value="3990180">Call</option>
											<option value="3990181">Demo</option>
											<option value="3990182">Email</option>
											<option value="3990183">Fax</option>
											<option value="3990184">Follow-up</option>
											<option value="3990185">Lunch</option>
											<option value="3990186">Meeting</option>
											<option value="3990187">Ship</option>
											<option value="3990188">Thank-you</option>
											<option value="new">New category...</option></select>
											<a href="/task_categories" behavior="return_to" class="edit_categories">
											编辑方式
											</a>
											</p>
											<p>
											<input name="task[public]" type="hidden" value="0" />
											<input class="checkbox" id="public_checkbox_task" name="task[public]" type="checkbox" value="1" /> 
												<label for="public_checkbox_task">对每个人都可见</label>
											</p>
    
										</div>
									</div>
									</div>
								<div class="submit">
									<p>
										<input name="commit" type="submit" value="添加保存" />
										<span>或者</span>
										<a href="#" class="menu_target admin">取消</a>
									</p>
								</div>
								</form>
							</div>
						   </div>
                         </div>
							</div>
							</div>
					</td>
					<td class="long">
						<div id="search_wrapper">
							<div class="quick_find">
								<div class="field" style="position:relative;">
									<input type="text" id="sidebar_live_search" name="term" title="a contact, case, deal, or tag..."/>
								</div>
							</div>
						</div>
					</td>
				</tr>
			</table>
			
			 
			
			
			<div id="global_links_container">
				<div class="menu_container">
			      <a href="#" class="name menu_target">
			        设置
			        <span>▼</span>
			      </a>
			      <div id="balloon_global_links" class="balloon center menu_content ">
						<div class="balloon_pointer">
							<div class="balloon_arrow menu_target"></div>
							<div class="balloon_arrow_border"></div>
						</div>
						<div class="balloon_wrapper">
							<div class="balloon_content">
								<ul class="global_links">
								<li><a href="<%=basePath%>contents/showUser.action" class="">用户</a></li>
								<li><a href="#" class="">密码重置</a></li>
								<li><a href="<%=basePath%>contents/showGroup.action" class="">分组</a></li>
								</ul>
							</div>
						</div>
					</div>
				</div>
           </div>
		</div>
	</div>
</div>

<div id="wrapper">
    <div id="inner_wrapper">
      <div id="main_body" class="column">
		<div id="blank_slate" class="clearfix"> 
			<div class="blank_slate_layout">
			<div class="graphic" style="background-image:url(<%=basePath %>img/blankslate_icon_parties.png);"></div>
					<div class="content">
						<h1>建立你的联系</h1>
							<p>
								保存每一次谈话，电子邮件，电话，会议，文件和你曾经有过一个接触的协议。随着高楼，你总是知道你提到谁，说了什么，以及何时跟进下
							</p>
						<div class="menu_container controls" id="people_blank_slate_controls">
							<span class="button">
								<a href="#" behavior="return_to">
									<span>添加你的第一个联系人</span>
								</a>
							</span>
						</div>
					</div>
								<script type="text/javascript">
							//<![CDATA[
									async("new MenuObserver('people_blank_slate_controls')")
										//]]>
								</script>
		</div>
    </div>
	 <div id="page">
          <div id="screen_body">
			<div id="page_header_wrapper"><!-- page header -->
				<div id="page_header">
                <div class="page_header">
					<div behavior="scope_picker">
						<div behavior="picker" style="display:none;">
								<select>
										<optgroup label="所有的...">
											<option value="contact_import_id=&amp;kind=people&amp;scope=">所有的人</option>
										</optgroup>
										<optgroup label="最近...">
											<option value="contact_import_id=&amp;kind=parties&amp;scope=recently_viewed">最近被浏览过的联系人</option>
											<option value="contact_import_id=&amp;kind=parties&amp;scope=recently_added">最近添加的人</option>
										</optgroup>
										<optgroup label="搜索...">
											<option value="contact_import_id=&amp;kind=parties&amp;scope=without_recent_notes">最近30天内没有被注意的人</option>
											<option value="contact_import_id=&amp;kind=parties&amp;scope=without_tags">没有标签的人</option>
										</optgroup>
									</select>
								<small><a href="#" class="admin" behavior="toggle">取消</a></small>
						</div>
						<h1 id="parties_header">
								<span class="title">All people &amp; companies</span>
								<small class="toggle"><a href="#" behavior="toggle">改变视图</a></small>
						</h1>
					</div>
				 </div>
                </div>
            </div> 
			<!--// page header -->
     <div id="page_contents_wrapper" class="clearfix"><!-- page contents -->
			<div id="page_main_column" class="column"><!-- main column -->
                <div class="liner">  
					<div id="completed_operations">
						<div behavior="content" class="content"></div>
					</div>
					<div id="parties">
						<div id="browser"class=" "data-href="/parties"data-cookie-name="party_filters">
							<div class="party_search_filters">
								<div id="page_filter_options" behavior="filter_picker">
								<p>搜索你的联系人</p>
								<ul>
								<li class="menu_container">
									<a href="#" class="add_filter menu_target">姓名</a>
									<div id="balloon_search_name" class="balloon center menu_content ">
										<div class="balloon_pointer"><!-- balloon pointer -->
											<div class="balloon_arrow menu_target"></div>
												<div class="balloon_arrow_border"></div>
										</div>
										<div class="balloon_wrapper"><!-- balloon content -->
											<div class="balloon_content">
												<form action="<%=basePath %>contact/findContact.action"   method="post">
													<div style="margin:0;padding:0;display:inline">
														<input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" />
													</div>
													<p class="error" style="display:none;">Server error. Please try again.</p>
														<p class="fields">
															
															<input  class="filter"  name="q_like_acronym" type="text" placeholder="首字母缩写" value='${q_like_acronym}'/>
    														
															<input name="commit" type="submit" id="btnSearch"  value="搜索" />
															
																<br /><small>ex: "l" or "li" </small>
														</p>
												</form>
											</div>
										</div>
									</div>
								</li>
								
								<li class="menu_container">
								 搜索结果：
								${ conName}
								</li>	
								</ul>
								</div>
								<div id="page_filter_selected" behavior="selected" class="clearfix">
								</div>
							</div>
							<div id="parties_loading" behavior="spinner" class="live_search_spinner" style="display:none;">
								<div class="liner">
									<h3>下载中</h3>
									<img alt="Dots-white" src="img/dots-white.gif" />
								</div>
							</div>
						<div class="content" behavior="content">
							<div data-page-offset="0"
									data-page-size="50"
									data-is-last-page="true"
									data-query="kind=parties&amp;n=0">
							</div>
							<div behavior="party_selection_container" class="party_selection">
								<div behavior="party_selection_controls" class="party_selection_controls">
									<div behavior="sleeve" class="sleeve">
										<div behavior="content" class="content">
											<div class="summaries">
												<div behavior="selection_summary no_contacts" class="selection_summary no_contacts">
													选择标签，改变谁可以看到他们，或删除的联系人
												</div>
												<div behavior="selection_summary page_of_contacts" class="selection_summary page_of_contacts" style="display:none;">
													<strong>1个人被选中</strong><br/>
												</div>
        
											</div>
											<div class="invitations">
												<a behavior="start_activity_to_create_add_tags_operation" class="link_to_start tagging">添加一个标签</a>
												<a behavior="start_activity_to_create_change_visibility_operation" class="link_to_start visibility_change">改变可以被浏览的权限</a>
												<a behavior="start_activity_to_create_destroy_operation" class="link_to_start deletion">删除</a>
											</div>
										</div>
									</div>
									<div class="selection_controls">
										<a behavior="select_page" class="link_to_select page_of_contacts">选择所有</a>
										<a behavior="select_none" class="link_to_select no_contacts">不选择</a>
									</div>
								</div>
								<div behavior="party_selection_activities" class="party_selection_activities">
									<form action="#" behavior="activity_to_create_add_tags_operation" class="create_add_tags_operation" data-container-class-name="adding_tags" method="post" onsubmit="$(this).fire('form:submit'); return false" style="display:none;">
										<div style="margin:0;padding:0;display:inline">
											<input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" />
										</div>
											<input type="hidden" name="dom_id" behavior="dom_id_input" />
											<input type="hidden" name="type" value="add_tags" />
											<input type="hidden" name="filters" behavior="filter_query" />
											<div behavior="party_id_input_container" style="display:none"></div>
									<table class="layout">
										<tr>
											<td class="input">
												<input behavior="tag_name_input" class="tag_name_input" id="add_tags_op_tag_name_input" name="operation[name]" type="text" />
													<div class="auto_complete" id="add_tags_op_tag_name_input_matches">
													</div>
															<script type="text/javascript">
																//<![CDATA[
																async("var add_tags_op_tag_name_input_auto_completer = new Ajax.Autocompleter('add_tags_op_tag_name_input', 'add_tags_op_tag_name_input_matches', '/tags/search', { paramName: 'term', updateElement: function(e) { $('add_tags_op_tag_name_input').value = (e.textContent || e.innerText || ''); $('add_tags_op_tag_name_input').focus(); } })")
																//]]>
															</script>
											</td>
											<td class="actions">
													<input behavior="commit_button" class="commit_button" data-disabled-text="Tagging contacts…" name="commit" type="submit" value="给这些联系添加标签" />
												<span class="alt">或者 
													<a behavior="stop_activity" class="link_to stop">取消</a>
												</span>
											</td>
										</tr>
									</table>
									<div behavior="operation_placeholder"></div>
									<div class="network_indicator"></div>
									</form>
									
									<form action="#" behavior="activity_to_create_change_visibility_operation" class="create_change_visibility_operation" data-container-class-name="changing_visibility" method="post" onsubmit="$(this).fire('form:submit'); 
									//return false" style="display:none;">
										<div style="margin:0;padding:0;display:inline">
											<input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" />
										</div>
											<input type="hidden" name="dom_id" behavior="dom_id_input" />
											<input type="hidden" name="type" value="change_visibility" />
											<input type="hidden" name="filters" behavior="filter_query" />
										<div behavior="party_id_input_container" style="display:none"></div>
											<h1>谁可以看到这些联系人</h1>
										<div behavior="select_permissions" class="select_permissions">
										<div class="scope activated">
											<label><input checked="checked" id="operation_visible_to_everyone" name="operation[visible_to]" type="radio" value="Everyone" />
														所有人可见
											</label>
										</div>
										<div class="scope ">
											<label><input id="operation_visible_to_owner" name="operation[visible_to]" type="radio" value="Owner" /> 
														只对我可见
											</label>
										</div>
										<div class="scope ">
											<label><input id="operation_visible_to_namedgroup" name="operation[visible_to]" type="radio" value="NamedGroup" />
												我再加上这些组&hellip;
											</label>
											<div class="editor">
												<select class="named_group" name="operation[group_id]">
													<option style="font-style: italic" value="">选择一个小组&hellip;</option>
													<option value="432857">亦可</option>
												</select>
											</div>
											<div class="named_groups_data" data="{&quot;432857&quot;:[]}"></div>
										</div>
										</div>
										<div class="footer">
												<div class="footer_border"></div>
												<div behavior="operation_placeholder" class="operation_placeholder"></div>
												<div behavior="creation_controls" class="actions">
														<input behavior="commit_button" class="commit_button" data-disabled-text="Changing permissions…" name="commit" type="submit" value="改变权限" />
												<span class="alt">
												或者 <a behavior="stop_activity" class="link_to stop">取消</a>
												</span>
												</div>
										</div>
										<div class="network_indicator"></div>
									</form>

								<form action="#" behavior="activity_to_create_destroy_operation" class="create_destroy_operation" data-container-class-name="deleting" method="post" onsubmit="$(this).fire('form:submit');
								// return false" style="display:none;">
									<div style="margin:0;padding:0;display:inline"><input name="authenticity_token" type="hidden" value="ZFqPkVdxhTQHcfdFfQ9VvxB5D31uEO5tyJEVeiLKBbI=" /></div>
										<input type="hidden" name="dom_id" behavior="dom_id_input" />
										<input type="hidden" name="type" value="destroy" />
										<input type="hidden" name="filters" behavior="filter_query" />
										<div behavior="party_id_input_container" style="display:none"></div>
										<div behavior="selection_context n_contacts page_of_contacts">
										<div class="message">
											<h1>你确定要删除这些联系人吗？</h1>
											<p>
											所有的笔记，电子邮件，任务和联系人信息将被永久删除与这些接触。没有撤消
											</p>
										</div>
										<div class="footer">
											<div class="footer_border"></div>
											<div behavior="operation_placeholder" class="operation_placeholder"></div>
											<div behavior="creation_controls" class="actions">
												<input behavior="commit_button" class="commit_button" data-disabled-text="Deleting contacts…" name="commit" type="submit" value="我知道.删除这些联系" />
											<span class="alt">
											或者 <a behavior="stop_activity" class="link_to stop">取消</a>
											</span>
											</div>
										</div>
										</div>
										<div class="network_indicator"></div>
								</form>
								<div class="top_border"></div>
								</div>
							</div>
							<div class="parties">
								<table class="index">
								<c:forEach items="${contactList}" var="c">
								
								
									<tr id="row_person_137020703">
  
    <td class="checkbox">
      <label class="checkbox">
      <input behavior="party_id_input" class="checkbox" id="id_" name="id[]" type="checkbox" value="137020703" /></label>
    </td>
    <td class="avatar">
      <a href="/parties/137020703" class="image">
	  <img alt="师 丽丽" class="avatar" height="70" src="<%=basePath %>img/5.jpg" title="师 丽丽" width="55" /></a>
    </td>
    <td class="party">
      <div class="avatar_subject" id="person_137020703">
        <div class="info">
          <h3 >
            <a href="<%=basePath %>contact/toNoteContact.action?&ContactId=${c.id}" class="to_person">
           	
        	    姓名：  ${c.name}
            </a>
          </h3>

          <h6>
            
              <div class="title_and_company">
                <a href="/parties?title=%E9%94%80%E5%94%AE%E4%BB%A3%E8%A1%A8" class="grey">
				职务（title）：${c.title}</a>
                at
               <br/> <a href="/companies/137018090" class="grey">公司名（company）：${c.company}</a>
              </div>
             <c:forEach items="${c.emailSet}" var="e" begin="0" end="0">
              <a class="link_to email grey" href="mailto:89834923@qq.com?bcc=dropbox@38857974.kaisheng5.highrisehq.com">
			  邮箱（${e.type}）：${e.content}
			  </a><br/>
			 </c:forEach>
			
			  <br/>
			  <c:forEach items="${c.phoneSet}" var="p" begin="0" end="0">
          		   电话（${p.type}）： ${p.num}</br>
          	   </c:forEach> 
           </h6>
          <p class="tags">
		  <a href="/tags/2399793" behavior="tag_picker" class="tag grey tag-2399793">
			  标签（tag）：${c.tag}</a>
		 
        </div>
      </div>
    </td>  
</tr>
</c:forEach>
								</table>
							</div>
						</div>
						<div class="pager" behavior="pager" style="display:none;">
							<span>
								<a href="#" class="disabled" rel="first">First</a>
								<a href="?n=0" rel="prev" style="display:none;">&larr; Previous</a>
							</span>
							<span class="current">Page 1</span>
							<span>
								<a href="?n=50" rel="next" style="display:none;">Next &rarr;</a>
								<a href="#" class="disabled" rel="last">Last</a>
							</span>
						</div>
						<div style="clear:left;"></div>
						</div>
					</div>
                </div>
             </div> <!--// main column -->
			<div id="page_sidebar" class="Right column"> <!-- page sidebar -->
				<div class="liner">               
				<div class="sidebox_wrapper">
					<div class="liner">
						<div class="sidebox closedbox">
								<h5>很容易导出</h5>
							<a href="/contact_imports/new" behavior="return_to" id="import_contacts_link">导入</a>
							或者<a href="/contact_exports/new" behavior="return_to">导出</a> 你的联系人</br>
							
												
						
							
							
							
						</div>
					</div>
				</div>
                </div>
            </div> <!--// page sidebar -->
	</div>    <!--// page contents -->
	</div>
	</div> <!--// page -->

   
	<div style="margin-top: 30px"> </div>        
	</div>
		<div id="global_sidebar" class="column">
		<div class="liner">
			<div id="global_nav">
			<ul>
		<li class="dashboard"><a href="<%=basePath %>message/message.action" class="">最新动态</a></li>
			<li class="parties"><a href="<%=basePath %>contact/showContact.action" class="selected">联系 <span class='stat'></span></a></li>
			<li class="tasks"><a href="<%=basePath %>task/task.action" class="">任务<span class='stat'>无今天</span></a></li>
			<li class="deals"><a href="<%=basePath %>deal/deal.action" class="">交易 <span class='stat'>无</span></a></li>
			<li class="dashboard"><a href="/" class="">营销</a></li>
			</ul>
			</div>
          <div id="recent_items"><hr/>
			<h4>最近浏览</h4>
			<div class="recent_items">
				<a href="/tags/2399793" class="recent_item ">
				<span class="sprite avatar blank_avatar tag " style="background: url(<%=basePath %>img/highrise_sprites.png) no-repeat -168px -148px; width: 32px; padding-top: 32px; " title="大客户" id="">大客户</span>
				<span class="recent_name">大客户</span>
				<span class="recent_desc"></span>
				</a>
			</div>
			</div>
		</div>
    </div>
    </div>
</div>

  <hr style="display: none;" />
	<div id="preloaded_images" style="position:absolute; height:0px; overflow:hidden;">
		<img alt="Dots-white" src="<%=basePath %>img/dots-white.gif" />
		<img alt="Dots-black" src="<%=basePath %>img/dots-black.gif" />
	</div>
  <script src="<%=basePath %>js/sprockets.js" type="text/javascript"></script> 
      <script type="text/javascript">
    	$(document).ready(function(){
    		
    		$(".pageLink").click(function(){
    			$("#pageNo").val($(this).attr('rel'));
    			$("#fm").submit();
    		});
    		
    		$("#btnSearch").click(function(){
    			$("#pageNo").val("1");
    			$("#fm").submit();
    		});
    		
    	});
    </script>

	
</body>
</html>